using UnityEngine;

public class PauseParticle : MonoBehaviour
{
	public float pauseAfterTime = 2f;

	private void Start()
	{
		if (Device.isWeakDevice)
		{
			Invoke("PausePart", 0.016f);
		}
		else
		{
			Invoke("PausePart", pauseAfterTime);
		}
	}

	private void PausePart()
	{
		ParticleSystem component = GetComponent<ParticleSystem>();
		if (component != null)
		{
			component.Pause();
		}
	}
}
